package com.resurvolution.kingcloudmusicspringboot.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName("artists")
@AllArgsConstructor
@NoArgsConstructor
public class ArtistEntity {
    @TableId(type = IdType.AUTO, value = "artist_id")
    private Integer id;
    private String name;
    @TableField("created_at")
    private LocalDateTime createdAt;
    private String bio;
}
